/*
* Copyright 2017 Yonyou Auto Information Technology（Shanghai） Co., Ltd. All Rights Reserved.
*
* This software is published under the terms of the YONYOU Software
* License version 1.0, a copy of which has been included with this
* distribution in the LICENSE.txt file.
*
* @Project Name : marketing-service-questionnaire
*
* @File name : MarketingServiceQuestionnaireApplication.java
*
* @Author : Administrator
*
* @Date : 2017年4月28日
*
----------------------------------------------------------------------------------
*     Date       Who       Version     Comments
* 1. 2017年4月28日    Administrator    1.0
*
*
*
*
----------------------------------------------------------------------------------
*/
	
package com.yonyou.gmmc;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


/**
*
* @author Administrator
* TODO description
* @date 2017年4月28日
*/
@EnableCircuitBreaker
@EnableHystrix
@EnableFeignClients
@EnableDiscoveryClient
@SpringBootApplication
@Controller
@ComponentScan(basePackages = "com.yonyou") 
public class MarketingServiceQuestionnaireApplication {

    public static void main(String[] args) {
        SpringApplication.run(MarketingServiceQuestionnaireApplication.class, args);
    }
    @RequestMapping("/help")
    public String help() {
        return "redirect:swagger-ui.html";
    }
}
